package com.chushouya.order.dto.api.stat;

import com.chushouya.manager.constants.ClerkUserTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("每月业务员订单统计")
public class ClerkOrderMonthDTO {
    @ApiModelProperty("开始日期")
    private String statStartDate;

    @ApiModelProperty("结束日期")
    private String statEndDate;

    @ApiModelProperty("时间")
    private Date statDate;

    @ApiModelProperty("业务员id")
    private Long clerkId;

    @ApiModelProperty("业务员名称")
    private String clerkName;

    @ApiModelProperty("城市")
    private String city;

    @ApiModelProperty("业务员类型")
    private Integer userType;

    @ApiModelProperty("业务员类型")
    private String userTypeText;

    @ApiModelProperty("派单数")
    private Integer dispatchCount;

    @ApiModelProperty("完成数")
    private Integer completeCount;

    @ApiModelProperty("发货数")
    private Integer deliverCount;

    @ApiModelProperty("备货数")
    private Integer stockCount;

    @ApiModelProperty("退货数")
    private Integer returnedCount;

    @ApiModelProperty("自建数")
    private Integer selfCreateCount;

    @ApiModelProperty("一机多台数")
    private Integer multiCount;

    @ApiModelProperty("取消数")
    private Integer cancelCount;

    @ApiModelProperty("关闭数")
    private Integer closeCount;

    @ApiModelProperty("撤销数")
    private Integer backoutCount;

    public String getUserTypeText() {
        return ClerkUserTypeEnum.getDesc(this.userType);
    }

}
